package tg.app.rj.tslx;

import java.rmi.RemoteException;
import psdi.mbo.MAXTableDomain;
import psdi.mbo.MboValue;
import psdi.util.MXException;

/***
 * 
 * @author pzx
 *
 */
public class FldWtnum  extends MAXTableDomain
{
	
  public FldWtnum(MboValue mbv)
    throws MXException, RemoteException
  {
    super(mbv);
    String thisAttr = getMboValue().getAttributeName();
    setRelationship("workticket", "wtnum=:" + thisAttr);
    setListCriteria("status in (select value from synonymdomain where (maxvalue not in ('CAN','CLOSE')) and  domainid='WTSTATUS')");
    String[] FromStr = { "wtnum" };
    String[] ToStr = { thisAttr };
    setLookupKeyMapInOrder(ToStr, FromStr);
  }
  
  public void action()
    throws MXException, RemoteException
  {
    super.action();
  }
  
}
